<?php

use Hyperf\HttpServer\Router\Router;

Router::addGroup('/system/',function (){
    Router::post('mewsCaptcha',[\App\Controller\System\SystemController::class,'getCaptcha']);
});

Router::addGroup('/test/',function(){
    Router::post('setSpUser/{type}',function($type){
        (new \App\DataStore\RedisGeneral())->setUserKey('test_sp',[
            'user_id' => 1,
            'organ_id' => 1,
            'user_name' => '炒鸡管理员',
            'user_type' => 1,
            'user_phone' => '1',
            'user_email' => '1'
        ]);
        return [
            'data' => 'test_sp'
        ];
    });
});